-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
less flakiness in rex module #17519
base: master
Are you sure you want to change the base?
less flakiness in rex module #17519
Conversation
trigger: test-robottelo |
PRT Result
|
@@ -882,7 +870,7 @@ def test_positive_time_expressions(self, rex_contenthost, target_sat): | |||
) | |||
|
|||
@pytest.mark.tier3 | |||
@pytest.mark.rhel_ver_list([8]) | |||
@pytest.mark.rhel_ver_list([9]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pytest.mark.rhel_ver_list([9]) | |
@pytest.mark.rhel_ver_list([settings.content_host.default_rhel_version]) |
sleep(30) | ||
assert_job_invocation_result(target_sat, invocation_command['id'], client.hostname) | ||
assert invocation_info['status'] in ['running', 'finished', 'queued'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of using sleep func here, why not use wait_for here to check if job-invocation is finished
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or wait_for_tasks
.
# 23 mins after every other hour | ||
[ | ||
'23 0-23/2 * * *', | ||
f'{today.strftime("%Y/%m/%d")} ' | ||
f'{(str(hour if hour % 2 == 0 else hour + 1)).rjust(2, "0")}:23:00', | ||
], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add some description/comments about this removals?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack (Pending requested changes)
Problem Statement
Trying to make a couple of problematic tests behave more predictably.
Solution
Asserting for rex status instead of result, removing some time assertions
Related Issues